//var ADDRESS="http://11.26.254.52";
//var PORT=":8080";
var ADDRESS="http://10.2.11.138";
//var PORT=":8080";
var PORT=":8080";
var IMAGE=ADDRESS+PORT+"/public/upload/";
var STATICURL=ADDRESS+PORT+"/public/home/";

try {
    var stv_no = hardware.STB.serialNumber;
} catch (e) {
    //ADDRESS="http://10.4.254.225";
    ADDRESS="http://10.2.11.138";
    //PORT=":8080";
    PORT=":8080";
    IMAGE=ADDRESS+PORT+"/public/upload/";
    STATICURL=ADDRESS+PORT+"/public/home/";
}

function getParam(paramName) {
    paramValue = "";
    isFound = false;
    if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) {
        arrSource = decodeURI(this.location.search).substring(1, this.location.search.length).split("&");

        i = 0;
        while (i < arrSource.length && !isFound) {
            if (arrSource[i].indexOf("=") > 0) {
                if (arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase()) {
                    paramValue = arrSource[i].split("=")[1];
                    isFound = true;
                }
            }
            i++;
        }
    }
    return paramValue;
}